home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
pctjja86.arc
/
STATEC.ARC
/
AUTO5.C
< prev
next >
Wrap
Text File
|
1985-09-18
|
665b
|
42 lines
/* auto5.c - long integer math benchmark */
#include "stdio.h"
static long ncount = 4000 ;
int lmath()
{
long i , j , k , l ;
static long m , n ;
j = 6 ; k = 2 ;
for(i=0 ; i< ncount ; i++)
{
j = j + i + k ;
k = l + i ;
j = j + k + l ;
m = (l -i) - (k-j) - (i-6L) ;
j = j << 1 ;
j = j + i + k ;
k = l + i ;
j = j + k + l ;
m = (l -i) - (k-j) - (i-6L) ;
m = j >> 4 ;
j = j + i + k ;
k = l + i ;
j = j + k + l ;
m = (l -i) - (k-j) - (i-6) ;
j = i * l ;
k = k * j ;
l = l / (i+1) ;
n = j & 0xff ;
j = k | 0x80000001 ;
}
}